package internal

import "github.com/shopspring/decimal"

type StripePayRespData struct {
	PublicKey    string `json:"publicKey"`
	ClientSecret string `json:"clientSecret"`
	ReferenceID  string `json:"referenceId"`
}

type StripePayNotify struct {
	Id         string `json:"id"`
	Object     string `json:"object"`
	ApiVersion string `json:"api_version"`
	Created    int    `json:"created"`
	Data       struct {
		Object struct {
			Id               string          `json:"id"`
			Object           string          `json:"object"`
			Amount           decimal.Decimal `json:"amount"`
			AmountCapturable int             `json:"amount_capturable"`
			AmountDetails    struct {
				Tip struct {
				} `json:"tip"`
			} `json:"amount_details"`
			AmountReceived decimal.Decimal `json:"amount_received"`

			CaptureMethod      string `json:"capture_method"`
			ClientSecret       string `json:"client_secret"`
			ConfirmationMethod string `json:"confirmation_method"`
			Created            int    `json:"created"`
			Currency           string `json:"currency"`
			Livemode           bool   `json:"livemode"`
			Metadata           struct {
			} `json:"metadata"`
			PaymentMethod string `json:"payment_method"`
			Status        string `json:"status"`
		} `json:"object"`
	} `json:"data"`
	Livemode        bool `json:"livemode"`
	PendingWebhooks int  `json:"pending_webhooks"`
	Request         struct {
		Id             string `json:"id"`
		IdempotencyKey string `json:"idempotency_key"`
	} `json:"request"`
	Type string `json:"type"`
}
